from django.urls import path

from apps.goods.views import IndexView,ListView,HotGoodsView,MySearchView,DetailView,DetailVisitView,UserBrowseHistory





urlpatterns = [

    path('index/', IndexView.as_view()),
    # 商品列表页
    path('list/<category_id>/skus/',ListView.as_view()),
    #热销
    path('hot/<category_id>/', HotGoodsView.as_view()),
    # 搜索
    path('search/', MySearchView()),
    #商品详情页
    path('detail/<sku_id>/',DetailView.as_view()),
    #统计分类商品访问量
    path('detail/visit/<category_id>/',DetailVisitView.as_view()),
     #保存和获取用户浏览记录
    path('browse_histories/',UserBrowseHistory.as_view())
]